﻿using System;
using System.Windows;

namespace WebApiLesson
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        readonly HttpServer httpServer;

        public MainWindow()
        {
            InitializeComponent();
            try
            {
                httpServer = new HttpServer("127.0.0.1", 8080);
                httpServer.StartHttpServer();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
    }
}
